<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/Sanpham.php';
$timSP = new Sanpham();
$listtimSP = $timSP->timkiemnangcao($gia,$nhanhieu);
?>
<?php while ($sp = mysql_fetch_assoc($listtimSP)): ?>
    <div class="pic">
        <p>
            <a href="index.php<?php echo $sp['id'] ?>"><img width="150px" src="<?php echo $sp['hinhanh'] ?>" alt="img" /></a></p>
        <p class="text5"><?php echo $sp['ten'] ?> <br />
            <strong> Giá bán: <?php echo $sp['gia'] ?> VNĐ </strong></p>
        <p>
            <a href="">
                <img src="imges/btn-chon.gif" alt="img" />
            </a>
            <a href="index.php?id=<?php echo $sp['id'] ?>">
                <img src="imges/btn-chitiet.gif" alt="img" />
            </a>
        </p>
    </div>
<?php endwhile; ?>